<?

$fs_inv_ctl_shipping_methods = new Fieldset (array (
	db_conn=>$_GLOBAL_DBH,
	relation=>"inv_ctl_shipping_methods",
	title=>"Inventory Shipping Method",
	fieldset=>array (
		array (name=>"id",label=>"ID",type=>"numeric",
				value=>$_REQUEST["shipping_method_id"],
				input=>"hidden",primary_key=>true),
		array (name=>"supplier_id",label=>"Supplier",type=>"any",
				value=>$_REQUEST["supplier_id"],
				relation=>array(foreign=>"inv_ctl_suppliers",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM inv_ctl_suppliers",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"name",label=>"Name",type=>"alphanumeric",
				input=>"field"),
		array (name=>"description",label=>"Description",type=>"alphanumeric",
				input=>"textarea",rows=>5),
	),
));

$fs_inv_ctl_shipping_methods->parse ();

?>
